Ext.define('More.sun.latestactivity.view.LatestActivityView', {
	extend : 'Ext.Panel',
	xtype : 'latestactivityView',
	store : 'More.sun.latestactivity.store.LatestActivity',
	requires : ['Ext.field.Spinner',
			'More.sun.latestactivity.store.LatestActivity',
			'More.sun.latestactivity.model.LatestActivity'],
	config : {
		items : [{
					xtype : 'toolbar',
					title : '最新活动',
					docked : 'top',
					items : [ {
								iconCls : 'reply',
								iconMask : true,
								ui:'action-back',
								handler : function(cmp, e, eOpts ) {
										cmp.up('moreView').setActiveItem(0);	
								}
							},{
								xtype : 'spacer'
							}]
				}, {
					xtype : 'spacer'
				}, {
					xtype : 'list',
					height : '350px',
					store : {
						type : 'activityStore'
					},
					itemTpl : new Ext.XTemplate(
							'<tpl for=".">',
							'<div style="float:left;"><h2>{content}</h2></div>',
							'<div style="float:right;">{time}</div>',
							'<div style="clear: both"></div></tpl>')
				}]
	}
});